package bo;

import java.util.List;

import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CityTest {
	private City chooseCity;
	private List<City> bigCitys;
	private List<City> aCitys;
	
	
	public City getChooseCity() {
		return chooseCity;
	}


	public void setChooseCity(City chooseCity) {
		this.chooseCity = chooseCity;
	}


	public List<City> getBigCitys() {
		return bigCitys;
	}


	@Override
	public String toString() {
		return "CityTest [chooseCity=" + chooseCity + ", bigCitys=" + bigCitys + ", aCitys=" + aCitys + "]";
	}


	public void setBigCitys(List<City> bigCitys) {
		this.bigCitys = bigCitys;
	}


	public List<City> getaCitys() {
		return aCitys;
	}


	public void setaCitys(List<City> aCitys) {
		this.aCitys = aCitys;
	}


	public static void main(String[] args) {
		ConfigurableApplicationContext ctx =
              new ClassPathXmlApplicationContext("bo/city.xml");
		CityTest test = (CityTest)ctx.getBean("citytest");
		System.out.println(test);
		System.out.println("jjjjj");
		ctx.close();
	}

}
